package com.xiang.api.service;

import java.util.UUID;
import java.util.concurrent.ThreadLocalRandom;

public class IdGeneratorService {

  public String nextId(Object entity) {
    ThreadLocalRandom random = ThreadLocalRandom.current();
    return (new UUID(random.nextLong(), random.nextLong())).toString().replace("-", "");
  }

}
